package en.edu.scau.cmi.zhanzhiyong.carpter10;

import java.io.File;

public class Example10_2 {
	
	public static void main(String args[]) {
		File dir = new File(".");
		
		FileAccept fileAccept = new FileAccept();
		fileAccept.setExtendName("txt");
		String fineName[] = dir.list();
		for(String name:fineName) {
			System.out.println(name);
		}
		
	}
}
